package com.ruoyi.chengkao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.chengkao.mapper.CkMilitaryServiceMapper;
import com.ruoyi.chengkao.domain.CkMilitaryService;
import com.ruoyi.chengkao.service.ICkMilitaryServiceService;

/**
 * 报考军人服役地信息Service业务层处理
 * 
 * @author xiaosong
 * @date 2025-03-10
 */
@Service
public class CkMilitaryServiceServiceImpl implements ICkMilitaryServiceService 
{
    @Autowired
    private CkMilitaryServiceMapper ckMilitaryServiceMapper;

    /**
     * 查询报考军人服役地信息
     * 
     * @param id 报考军人服役地信息主键
     * @return 报考军人服役地信息
     */
    @Override
    public CkMilitaryService selectCkMilitaryServiceById(Long id)
    {
        return ckMilitaryServiceMapper.selectCkMilitaryServiceById(id);
    }

    @Override
    public List<CkMilitaryService> selectCkMilitaryServiceAll()
    {
        return ckMilitaryServiceMapper.selectCkMilitaryServiceAll();
    }

    /**
     * 查询报考军人服役地信息列表
     * 
     * @param ckMilitaryService 报考军人服役地信息
     * @return 报考军人服役地信息
     */
    @Override
    public List<CkMilitaryService> selectCkMilitaryServiceList(CkMilitaryService ckMilitaryService)
    {
        return ckMilitaryServiceMapper.selectCkMilitaryServiceList(ckMilitaryService);
    }

    /**
     * 新增报考军人服役地信息
     * 
     * @param ckMilitaryService 报考军人服役地信息
     * @return 结果
     */
    @Override
    public int insertCkMilitaryService(CkMilitaryService ckMilitaryService)
    {
        return ckMilitaryServiceMapper.insertCkMilitaryService(ckMilitaryService);
    }

    /**
     * 修改报考军人服役地信息
     * 
     * @param ckMilitaryService 报考军人服役地信息
     * @return 结果
     */
    @Override
    public int updateCkMilitaryService(CkMilitaryService ckMilitaryService)
    {
        return ckMilitaryServiceMapper.updateCkMilitaryService(ckMilitaryService);
    }

    /**
     * 批量删除报考军人服役地信息
     * 
     * @param ids 需要删除的报考军人服役地信息主键
     * @return 结果
     */
    @Override
    public int deleteCkMilitaryServiceByIds(Long[] ids)
    {
        return ckMilitaryServiceMapper.deleteCkMilitaryServiceByIds(ids);
    }

    /**
     * 删除报考军人服役地信息信息
     * 
     * @param id 报考军人服役地信息主键
     * @return 结果
     */
    @Override
    public int deleteCkMilitaryServiceById(Long id)
    {
        return ckMilitaryServiceMapper.deleteCkMilitaryServiceById(id);
    }
}
